package com.hjw.junit;

import com.hjw.exer2.Chef;
import com.hjw.exer2.Food;
import com.hjw.exer2.Guest;
import com.hjw.exer2.Restaurant;

/**
 * @author hjwStrart
 * @create 2022-01-11 18:38
 */
public class TestRest {
    public static void main(String[] args) {
        Guest guest = new Guest();
        guest.order(new Food[]{new Food("鱼香肉丝"), new Food("红烧肉")});
        Restaurant restaurant = new Restaurant(guest);
        Chef chef = new Chef(restaurant);
        restaurant.advice(chef);
        chef.cooking();
        System.out.println();

    }
}


